<?php
/**
 * EDIT FORM View Helper
*/
class Zend_View_Helper_EditFormTour extends Zend_View_Helper_Abstract
{
    protected $_form;
    
    protected $_propertiesTour;
    
    protected $_moreInfomation;
    
    public function editFormTour($form)
    {
        $this->_form = $form;
        return $this;
    }
    public function editPropertiesTour()
    {
    	$this->_propertiesTour = '<fieldset class="form-group" >
					<legend>Properties Of Tour</legend>			
					<a class="expand"><span class="icon-button mini"></span>Minimize</a>
					<div>
						<div id="aliases" class="field-wrapper">'.
							 $this->_form->inclusions
						.'</div>
						<div id="aliases" class="field-wrapper">'.
							$this->_form->exclusions
						.'</div>
						<div id="aliases" class="field-wrapper">'.
							$this->_form->cancellation
						.'</div>
						<div id="aliases" class="field-wrapper">'.
							$this->_form->theme
						.'</div>
    				</div>
    			</fieldset>';
    	return $this;
    }
    
    public function editMoreInfomation()
    {
        $this->_moreInfomation = '<fieldset class="form-group" >
	        <legend>More Infomation</legend>
		        <a class="expand"><span class="icon-button mini"></span>Minimize</a>
		        <div>
			        <div id="aliases" class="field-wrapper">'.
			        	$this->_form->price
			        .'</div>
			        <div id="aliases" class="field-wrapper">'.
			       		$this->_form->lengthDay
			        .'</div>
			        <div id="aliases" class="field-wrapper">'.
			        	$this->_form->lengthNight
			        .'</div>
		        </div>
	        </fieldset>';
        return $this;
    }
    
    public function toString()
    {
        $xhtml = $this->_moreInfomation;
    	$xhtml .= $this->_propertiesTour;
    	return $xhtml;
    }
}
?>